﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEET.LEETCommon.Model;
using LEET.CommonInterfaces.TestControls;

namespace LEET.StandardModuals.Instructions
{
    public class Options : Instruction
    {
        private String option;
        private String value;

        public Options(string[] args)
            : base(args)
        {
            option = "Delay";
            value = args[2].Trim();
        }

        public override String RenderStaticCall()
        {
            return "new AutomationActionResult(); Box." + option + " = " + value ;
        }

        public static Options apply(String[] args)
        {
            return new Options(args);
        }

        public override string PlainText()
        {
            return "Set pause between events to " + value + " milliseconds.";
        }
    }
}
